<template>
  <div class="content">
    <h2>{{ type }}分类</h2>
    <slot name="typeList" :list="list"></slot>
  </div>
</template>

<script>
export default {
  naem: "Content",
  props: ["type", "list"],
};
</script>

<style scoped>
.content {
  width: 200px;
  height: 400px;
  background: yellowgreen;
}
.content h2 {
  background: orange;
  text-align: center;
}
</style>
